package com.woniuxy.commentservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.commentdao.model.Comment;
import com.woniuxy.commentmodel.dto.CommentDto;
import com.woniuxy.commentmodel.param.*;
import com.woniuxy.core.util.PageInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * <p>
 * 场馆评价表 服务类
 * </p>
 *
 * @author 冉杰
 * @since 2024-01-15
 */
public interface CommentService extends IService<Comment> {

    void add(AddCommentParam param);

    void reply(ReplyParam param);

    PageInfo<CommentDto> byPage(CommentByPageParam param);

    void venueDel(Integer commentId, Integer venueId);

    void replyDel(Integer commentId, Integer venueId);

    void userDel(Integer commentId, Integer userId);

    void userModify(UserModifyParam param);

    void venueModify(VenueModifyParam param);

    String upload(MultipartFile file, String orderNum) throws IOException;
}
